package org.homeworkteam.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.sql.Timestamp;
import java.util.List;

@Data
@TableName("users")
@ToString
public class Users {

  @TableId(value = "user_id", type = IdType.AUTO)
  private Long userId;

  @TableField("user_account")
  private String userAccount;

  @TableField("user_name")
  private String userName;

  @TableField("user_password")
  private String userPassword;

  @TableField("is_vip")
  private String isVip;

  @TableField("user_money")
  private Double userMoney;

  @TableField("user_phone")
  private String userPhone;

  @TableField("user_idcard")
  private String userIdcard;

  @TableField("user_sex")
  private String userSex;

  @TableField("status")
  private String status;

  @TableField("create_time")
  private Timestamp createTime;

  @TableField(exist = false) // 不查询该字段
  private List<FavoriteVideo> favorite ;
  @TableField(exist = false) // 不查询该字段
  private List<Integer> purchased ;
}
